<#assign assign_EntityName = content.items.entity.className>
<#assign tableName = content.content.tableName>
<#assign camelName = content.content.camelName>
package ${content.items.dao.packageName};
import org.apache.ibatis.annotations.Param;
import java.util.List;
import ${content.items.entity.packageName}.${assign_EntityName};

/**
 * ${tableName}相关数据库操作
 * @author ist
 */
public interface ${content.items.dao.className}{
  //获取列表
  List<${assign_EntityName}> query${camelName?cap_first}List(${assign_EntityName} ${camelName});
<#if content.content.primaryField??>
  <#assign assign_idFieldType = content.content.primaryField[0].fieldType>
  <#assign assign_idFieldName = content.content.primaryField[0].fieldName>
  //获取详情
  ${assign_EntityName} query${camelName?cap_first}(@Param("${assign_idFieldName}")${assign_idFieldType} ${assign_idFieldName});
  //新增
  void add${camelName?cap_first}(${assign_EntityName} ${camelName});
  //更新
  void modify${camelName?cap_first}(${assign_EntityName} ${camelName});
  //删除
  void delete${camelName?cap_first}(@Param("${assign_idFieldName}")${assign_idFieldType} ${assign_idFieldName});
</#if>

}
